package com.ee.chat.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ee.chat.common.entity.UserSealLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Shane
 * @since 2020-08-04
 */
public interface UserSealLogMapper extends BaseMapper<UserSealLog> {
    /**
     * 获取所有未结束的记录
     * @Author Shane
     * @Date 2020/8/5 15:16
     * @param
     * @return
     */
    List<UserSealLog> selectSealLogs();

    /**
     * 获取最新的封禁记录
     * @Author Shane
     * @Date 2020/8/6 12:39
     * @param
     * @return
     */
    UserSealLog selectNewestLog(@Param("userId") Integer userId);
}